package com.huaxin.common.Entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Administrator on 2016/12/13.
 */
public class WaterIntakeDTO extends BaseDTO implements Parcelable {
    int id;
    String name;
    String description;
    String qrCode;
    int isFinish;


    protected WaterIntakeDTO(Parcel in) {
        id = in.readInt();
        name = in.readString();
        description = in.readString();
        qrCode = in.readString();
        isFinish = in.readInt();
    }

    public static final Creator<WaterIntakeDTO> CREATOR = new Creator<WaterIntakeDTO>() {
        @Override
        public WaterIntakeDTO createFromParcel(Parcel in) {
            return new WaterIntakeDTO(in);
        }

        @Override
        public WaterIntakeDTO[] newArray(int size) {
            return new WaterIntakeDTO[size];
        }
    };

    public Integer getIsFinish() {
        return isFinish;
    }

    public void setIsFinish(Integer isFinish) {
        this.isFinish = isFinish;
    }

    public void setQrCode(String qrCode) {
        this.qrCode = qrCode;
    }

    public Integer getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public String getDescription() {
        return description;
    }

    public String getQrCode() {
        return qrCode;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(id);
        dest.writeString(name);
        dest.writeString(description);
        dest.writeString(qrCode);
        dest.writeInt(isFinish);
    }
}
